import 'package:flutter/widgets.dart';
import 'package:website.core/core/presentation/localization/translation.dart';
import 'package:website.core/core/presentation/theme/theme.dart';
import 'package:website.core/core/presentation/widgets/app_button.dart';

class HeaderSigningUpButton extends StatelessWidget {
  const HeaderSigningUpButton({
    required this.onPressed,
    Key? key,
  }) : super(key: key);

  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return AppButton(
      color: CoreTheme.of(context).secondaryColor,
      padding: const EdgeInsets.symmetric(
        horizontal: 16,
      ),
      pressedOpacity: 0.6,
      onPressed: onPressed,
      borderRadius: BorderRadius.circular(20),
      child: SizedBox(
        height: 40,
        child: Center(
          child: Text(
            CoreTranslation.of(context).headerSigningUpButtonTitle,
            style: CoreTheme.of(context).textTheme.headerSigningUpButtonTitle,
            textAlign: TextAlign.center,
          ),
        ),
      ),
    );
  }
}
